# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=rdfind
pkgver=1.5.0
pkgrel=0
pkgdesc="Redundant data find - a program that finds duplicate files"
url="http://rdfind.pauldreik.se"
arch="all"
license="GPL-2.0 "
makedepends="nettle-dev automake autoconf libtool"
subpackages="$pkgname-doc"
source="https://rdfind.pauldreik.se/$pkgname-$pkgver.tar.gz
	disable-makefile-test-failing.patch
	missing-include.patch
	"

prepare() {
	default_prepare
	./bootstrap.sh
}

build() {
	./configure	--prefix=/usr
	make -s
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir/" install
}

sha512sums="
0ba95e3d9ed4f127d271500c6f36c8945d0c8193fa2719636cc780e56de108e35404d1860edcb2fca2d9a4fb8b09dcd5dab904e55cf0530d664aaf8510be266b  rdfind-1.5.0.tar.gz
ab53fabe698ed9fa31f31ed4828ce8f8b5582412a8ad97d2706aac3d1f6b21150ac8a73443e89c18a26b479b1cb4139e640d5c08c463cd01c7387dc311d10f1d  disable-makefile-test-failing.patch
0a213048989cb3834e1d4507ae95ba6cb33cc1ad31c52668b5448257dd7a3a98b8d993674b044124bd04ed297a7991337d020a8ac3111b58e09d6d52f6a0a495  missing-include.patch
"
